Skip to content

feat: add saved cities AQI ranking and health risk comparison - #1095

Open
karan-chaos wants to merge 2 commits into
Aditya8369:mainfrom
karan-chaos:feature/city-comparison-report
Open

feat: add saved cities AQI ranking and health risk comparison#1095
karan-chaos wants to merge 2 commits into
Aditya8369:mainfrom
karan-chaos:feature/city-comparison-report

Conversation

@karan-chaos

Copy link
Copy Markdown

Summary

#1094

This PR adds a saved cities air quality comparison feature with AQI rankings,
pollutant analysis against WHO limits, health-risk categorization, and
exportable reports.

Changes

AQI Rankings

Added saved city rankings based on AQI with:

  • Medal badges for leading positions
  • AQI band labels
  • Clear ranking comparisons

Pollutant Comparison

Added a pollutant breakdown table comparing:

  • PM2.5
  • PM10
  • NO₂
  • O₃
  • CO

Values are compared against WHO limits for easier interpretation.

Health Risk Groups

Added color-coded risk categories:

  • Safe
  • Moderate
  • Unhealthy
  • Critical

Export and Reports

Added:

  • CSV export
  • Formatted text reports
  • Clipboard copy support

Verification

  • City AQI rankings verified
  • Medal badges verified
  • AQI band labels verified
  • Pollutant comparison verified
  • WHO limit comparisons verified
  • Health-risk grouping verified
  • CSV export verified
  • Text report generation verified
  • Clipboard copy verified

@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

@karan-chaos is attempting to deploy a commit to the Aditya Mahajan's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thank You for Your Contribution! 🎉

Hi @karan-chaos,

Thank you for opening this Pull Request and contributing to our project. We truly appreciate your efforts.

Please make sure that:

  • Your code follows the project's guidelines.
  • You have linked the appropriate issue (if applicable).
  • Screenshots are added for UI/UX changes.
  • Your PR is ready for review.

The maintainer @Aditya8369 will review your PR shortly!

Happy Contributing! 🚀

@github-actions github-actions Bot added the ECSoC26 Contributions considered under ECSoC'26 label Aug 28, 2026
@Aditya8369

Copy link
Copy Markdown
Owner

@karan-chaos conflicts

karan-chaos and others added 2 commits August 29, 2026 14:54
Add a comprehensive data export module that lets users download AQI trend
data as CSV or JSON, preview and copy formatted text reports with health
guidance, generate shareable city links, and filter data by time range
with an interactive preview table and trend chart.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
Add a multi-city AQI comparison module with ranked leaderboards,
pollutant-level breakdown tables with WHO-limit exceedance flags,
health-risk categorisation groups, bar chart visualisation, CSV export,
and a formatted text report with clipboard copy.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
@karan-chaos
karan-chaos force-pushed the feature/city-comparison-report branch from 6a00eb2 to a58e933 Compare August 29, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECSoC26 Contributions considered under ECSoC'26 merge-conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants